package pet_pavilion.yushougeums.service;

import org.springframework.transaction.annotation.Transactional;
import pet_pavilion.yushougeums.pojo.dto.UserLoginInfoDTO;
import pet_pavilion.yushougeums.pojo.param.UserAddNewParam;
import pet_pavilion.yushougeums.pojo.param.UserLoginInfoParam;
import pet_pavilion.yushougeums.pojo.param.UserUpdateInfoParam;
import pet_pavilion.yushougeums.pojo.vo.UserStandardVO;

@Transactional
public interface IUserService {

    String ENABLE_TEXT[] = {"禁用", "启用"};
    /**
     * 用户注册
     **/
    void addNew(UserAddNewParam userAddNewParam);

    /*List<UserRegVO> list();*/

    /**
     * 用户登录
     */
    UserLoginInfoDTO login(UserLoginInfoParam userLoginListNewParam, String remoteAddr, String userAgent);

    /**
     * 用户退出登录
     */
    void logout (String jwt);

    void updateById(Long id, UserUpdateInfoParam adminUpdateInfoParam);

    UserStandardVO getStandardById(Long id);

    void setEnable(Long id);

}
